import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/login', // 默认重定向到登录页
    },
    {
      // 登录页
      name: 'Login',
      path: '/login',
      component: () => import('@/views/Login/LoginPage.vue'),
    },
  ],
})

export default router
